const routes = [
    {name: "Login", //组件名称
        path: "/login", //访问组件的 URL 路径
        component: () => import('@/login') //导入组件
    },
    {name: "Index",
        path: "/index",
        component: () => import('@/index'),
        children:[
            {name: "Product",
                path: "/index/product",
                component: () => import('@/product/product')
            },
            {name: "Order", //组件名称
                path: "/index/order", //访问组件的 URL 路径
                component: () => import('@/order/order') //导入组件
            },
                {name: "User", //组件名称
                path: "/index/user", //访问组件的 URL 路径
                component: () => import('@/user/user') //导入组件
            },
            {name: "Em",
                path: "/index/em",
                component: () => import('@/employee/employee')
            }
        ]
    },
    {name: "Box",
        path: "/box",
        component: () => import('@/checkboxTest')
    }
];

export default routes;